/**
 * flyShooter
 * @version 0.0.1
 * @author essen sheetstone
 * Copyright (C) 2009  essen sheetstone, All Rights Reserved. 
 */ 
package {
	import com.control.ContentManager;
	
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	import sekati.display.Canvas;
	import sekati.display.Document;
	import sekati.display.StageDisplay;
	import sekati.events.StageEvent;

	[SWF(width="1280", height="800", frameRate="30", backgroundColor="#000000")]
	public class flyshoot extends Document
	{
		public var _contentmanager:ContentManager		
		public function flyshoot() 
		{
			super();  			
		}
	    override protected function initAPI(hasBootstrap : Boolean = false) : void {
	     	super.initAPI( hasBootstrap );
	
			//Canvas.stage.stageWidth=Canvas.flashVars.width;
			//Canvas.stage.stageHeight=Canvas.flashVars.height;
			_contentmanager=new ContentManager();
	     	addChild(_contentmanager);
			Canvas.stage.addEventListener(Event.RESIZE ,ResizeHandler);
			
	    }
		public function ResizeHandler(e:Event):void{
			trace("resize in"); 
			trace(Canvas.stage.stageWidth);
			trace(Canvas.stage.stageHeight); 
			Canvas.stage.scaleMode=StageScaleMode.NO_SCALE; 
			_contentmanager.resize();	 		
		}

	}
}
